<style>
.contactBtn{background-color: #F1F1F1; display:inline-block; border-color: #FFF6D3 #DFD5AF #DFD5AF #FFF6D3; border-right: 1px solid #DFD5AF; border-style: solid; border-width: 1px;color:#FF9900; padding:1px 3px; margin-left:20px;}
.contactBtn:hover{background-color:#F0EBD6;}
</style>
<div class="common_box">
<script language="javascript" src="<{$config.weburl}>/script/my_lightbox.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" class="guide_ba"><span><{$lang.contect}></span></td>
  </tr>
  <{if $com.country}>
  <tr>
    <td align="right"><{$lang.country}></td>
    <td><{$com.country}></td>
  </tr>
  <{/if}>
  <tr>
    <td width="15%" align="right"><{$lang.area}></td>
    <td width="85%"><{$com.province }>·<{$com.city }> </td>
  </tr>
  <tr>
    <td align="right"><{$lang.addr}></td>
    <td><a onclick="alertWin('Map','',500,300,'<{$config.weburl}>/templates/default/map.php?addr=<{$com.addr|urlencode}>');" href="javascript:void(0);"><{$com.addr }></a></td>
  </tr>
<!--  <tr>
    <td align="right"><{$lang.contect_name}> </td>
    <td><{$com.contact }>(<{$com.position}>)<a class="contactBtn" href="shop.php?uid=<{$smarty.get.uid}>&action=send_mail&m=company">Click here to send mails</a></td>
  </tr>-->
  <tr>
    <td align="right"><{$lang.tel}> </td>
    <td><{$com.tel }></td>
  </tr>
  <{if $com.mobile!=''}>
  <tr>
    <td align="right"><{$lang.mobile}></td>
    <td><{$com.mobile }></td>
  </tr>
  <{/if}>
  <tr>
    <td align="right"><{$lang.fax}> </td>
    <td><{$com.fax}></td>
  </tr>
  <tr>
    <td align="right"><{$lang.post}></td>
    <td><{$com.zip }></td>
  </tr>
  <tr>
    <td align="right"><{$lang.weburl}></td>
    <td>
	<{if $com.url&&$com.url!='http://'}>
	<a target="_blank" href="javascript:window.location='<{$com.url }>'"><{$com.url }></a>
	<{/if}>	</td>
  </tr>
  <tr>
    <td align="right"><{$lang.reg_time}> </td>
    <td><{$com.uptime|date_format}> </td>
  </tr>
  <tr>
    <td align="right"><{$lang.jscon}> </td>
    <td>
    <{if $com.qq}>
    <a title="<{$com.qq}>" target="blank" href="tencent://message/?uin=<{$com.qq}>&Site=<{$config.company}>&Menu=yes"> <{$lang.qq}> </a>
    <{/if}>
	    &nbsp;
		<{if $com.msn}>
        <script language="JavaScript" type="text/javascript">
		function SendMSNMessage(name)
		  MsgrObj.InstantMessage(name);
		function AddMSNContact(name)
		  MsgrObj.AddContact(0, name);
		</script>
        <object id="MsgrObj" classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-oleobject" width="0" height="0">
        </object>
        <a title="<{$com.msn}>" href="#" onclick="SendMSNMessage('')"><{$lang.msn}></a>
<{/if}>
	
		<{if $com.skype}>
        <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
        <a href="skype:<{$com.skype}>?call"> <{$lang.skype}> </a> <{/if}>        </td>
  </tr>
</table>
</div>



<div class="common_box m1">
<{if $smarty.get.type==1}>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="text-align:center"><h1><{$lang.success}></h1></td></tr></table>
<{elseif $smarty.get.type==2}>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="text-align:center"><h1><{$lang.fail}></h1></td></tr></table>
<{elseif $smarty.get.type==3}>
    <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="text-align:center"><h1><{$lang.yzm_er}></h1></td></tr></table>
<{else}>
<script type="text/javascript" src="script/Validator.js"></script>
	<form method="post" action="" onSubmit="return Validator.Validate(this,3)">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" class="guide_ba"><span><{$lang.leve_msg}></span></td>
        </tr>
   			 <tr>
          <td  colspan="2" align="left"  style="color:#999999">
         <{$lang.msg_notice}>
         
         <{if $smarty.cookies.USER==''}>
         	<{$lang.mem_notice}>
         <{/if}>
         </td>
          </tr>
              <{if $tid}>
              <tr>
                <td  align="right" ><{$lang.about}></td>
                <td>
                <{foreach item=list from=$res}>
                <{$list.pname}><br />
                <{/foreach}>
                </td>
              </tr>
              <{/if}>
              <tr>
                <td  align="right" ><{$lang.receive}></td>
                <td><{$com.company}> <{$com.contact}></td>
              </tr>
		<{if !$buid}>
			  <tr><td align="right"><{$lang.company}>*</td>
            <td><input type='text' name='company' value='' style="width:400px;" ></td>
			</tr>
				  <tr>
				<td  align="right"><{$lang.country}></td>
				<td>
				<select name="country" id="country" class="input" style="width:300px;">
					<{foreach item=list key=num from=$country}>
					<option value="<{$list.name}>"><{$list.name}></option>
					<{/foreach}>
				  </select></td>
			</tr>
			<{/if}>
            <tr>
              <td width="15%"  align="right" ><{$lang.mail_title}>*</td>
              <td  width="85%" >
              <input type="text" value="<{$smarty.get.title}>" name="sub" style="width:400px;"  dataType="Require" msg="<{$lang.pls_title}>" />
              </td>
            </tr>
            <tr>
              <td width="15%" align="right" valign="top" ><{$lang.mail_con}>*</td>
              <td width="85%" valign="middle" >
              <textarea name="con"  rows="10" style="width:400px;" dataType="Require" msg="<{$lang.pls_con}>"></textarea></td>
            </tr>
             <{if $smarty.cookies.USER==''}>
         	<tr>
              <td width="15%"  align="right" ><{$lang.conect}>*</td>
          		<td  width="85%" >
			  <input name="name" type="text" style="width:400px;"  dataType="Require" msg="<{$lang.pls_name}>" />
			  </td>
            </tr>
            <tr>
              <td  align="right" ><{$lang.email}>*</td>
              <td>
			  <input name="email" type="text" style="width:400px;" dataType="Require" msg="<{$lang.pls_email}>" />
			  </td>
            </tr>
            <tr>
              <td  align="right" ><{$lang.tel}>*</td>
              <td>
			  <input name="tell" type="text" style="width:400px;" dataType="Require" msg="<{$lang.pls_tel}>" />
			  </td>
            </tr>
			<{else}>
			<tr>
              <td width="15%"  align="right" ><{$lang.sender}></td>
              <td  width="85%" >
			  <a target="_blank" href="shop.php?uid=<{$buid}>"><{$smarty.cookies.USER}></a>
              </td>
            </tr>
			  <{/if}>
            <tr>
              <td height="28" align="right" ><{$lang.yzm}>*</td>
              <td height="28" ><input name="yzm" type="text" style="width:60px; height:20px;" dataType="Require" msg="<{$lang.yzm}>" />
              <img style="vertical-align:top;" src='includes/rand_func.php' width="60" height="22"/></td>
            </tr>
            <tr>
              <td width="15%" height="28" >&nbsp;</td>
              <td height="28" width="85%" >
              	<input type="hidden" name="contype" value="<{if $smarty.get.contype}><{$smarty.get.contype}><{else}>1<{/if}>" />
              	<input type="hidden" name="tid" value="<{$tid}>" />
			    <input type="submit" name="Submit" value="<{$lang.send_now}>" />
                <input name="submit" type="hidden" id="submit" value="submit" />
				<input name="toid" type="hidden"  value="<{$smarty.get.uid}>" />
                <input type="hidden"  name="tocontact" value="<{$com.email}>" />
                </td>
            </tr>
        </table>
  </form>
    <{/if}>
</div>